ComponentOne FinancialChart for WPF
C1.WPF Namespace / Extensions Class / MakeRelative Method / MakeRelative(Popup,FrameworkElement,Func<List<AnchorMatching>>,Func<Point>,Func<Point>) Method
System.Windows.Controls.Primitives.Popup to handle.
Element used to locate the popup.
Function that provides the ordered list of AnchorMatching defining the corners to bound of both elements.
Function that retrieves the current position of the Popup.
Function that retrieves the current position of the reference element.



In This Topic
    MakeRelative(Popup,FrameworkElement,Func<List<AnchorMatching>>,Func<Point>,Func<Point>) Method
    In This Topic
    Makes the popup relative to another System.Windows.FrameworkElement.
    Syntax
    'Declaration
     
    
    <ExtensionAttribute()>
    Public Overloads Shared Sub MakeRelative( _
       ByVal popup As Popup, _
       ByVal relativeElement As FrameworkElement, _
       ByVal getLocations As Func(Of List(Of AnchorMatching)), _
       ByVal getPosition As Func(Of Point), _
       ByVal getReferencePosition As Func(Of Point) _
    ) 
    'Usage
     
    
    Dim popup As Popup
    Dim relativeElement As FrameworkElement
    Dim getLocations As Func(Of List(Of AnchorMatching))
    Dim getPosition As Func(Of Point)
    Dim getReferencePosition As Func(Of Point)
     
    Extensions.MakeRelative(popup, relativeElement, getLocations, getPosition, getReferencePosition)

    Parameters

    popup
    System.Windows.Controls.Primitives.Popup to handle.
    relativeElement
    Element used to locate the popup.
    getLocations
    Function that provides the ordered list of AnchorMatching defining the corners to bound of both elements.
    getPosition
    Function that retrieves the current position of the Popup.
    getReferencePosition
    Function that retrieves the current position of the reference element.
    See Also